<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activIdsAdmin']))
{
	header("Location:checkLogin.php");
}
else
{
  $status = $_GET['status'];
  $activeUser = "UPDATE user
                    SET status = '".$status."'
                   WHERE userId = ".$_REQUEST['userId'];
  $activeUserRes = mysql_query($activeUser);
  if(!$activeUserRes)
  {
  	echo "User Active Fail";
  }
  else
  {
    header("Location:createUser.php");
  }
  include("bottom.php");
}
?>